#include <nice2d/background.h>
#include <nice2d/widgets/control.h>

IMPLEMENT_OBJECT(ControlStyle,Serializer)

ControlStyle::ControlStyle()
{
    normalBackground = Background::create(sf::Color(128, 153, 128, 180));
    disableBackground = Background::create(sf::Color(102, 102, 102, 140));
    hoverBackground = Background::create(sf::Color(102, 102, 102, 140));
    pressedBackground = Background::create(sf::Color(102, 102, 142, 140));
}

ControlStyle::~ControlStyle()
{
}

PTree ControlStyle::serialize()
{
    PTree node;
    node.add_child("normalBackground",normalBackground->serialize());
    node.add_child("disableBackground",disableBackground->serialize());
    node.add_child("hoverBackground",hoverBackground->serialize());
    node.add_child("pressedBackground",pressedBackground->serialize());
    return node;
}

void ControlStyle::deserialize(const PTree &node)
{
}

void ControlStyle::sync()
{
}
